package com.tencent.wxcloudrun.dtos.req;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.io.Serializable;

@Getter
@Setter
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class PageReqDTO implements Serializable {
    private static final long serialVersionUID = -4086358648737665089L;
    /**
     * 页码 大于等于1
     */
    @Min(1)
    private Integer page;
    /**
     * 每页大小
     */
    @Max(20)
    @Min(5)
    private Integer pageSize;
}